package com.dyh.dao;

import com.dyh.po.family;
import com.dyh.po.familyMain;

import java.util.List;

public interface familyDao {
    List<family> findAllFamily();

    family findFamilyById(String familyId);

    int addFamily(String proId, String cityId, String villId, String groupId, String familyId, String familyName, String familyNum, String agrNum,
                  String address, String createtime, String logName);

    int addFamilyMain(String fullname, String idNo, String sex, String birthday, String national, String health, String culture,
                      String resAttribute, String agrRes, String marry, String workAdd, String telephone);

    familyMain findFamilyInfByName(String familyName);

    Boolean editFamily(String familyId, String familyNum, String agrNum, String address, String createTime, String logName);

    Boolean editFamilyMain(String fullname, String idNo, String sex, String birthday, String national, String health, String culture
            , String resAttribute, String agrResidence, String marry, String workAdd, String telephone);

    Boolean deleteFamily(String familyId);
}
